﻿using UnityEngine;
using System.Collections;

public class EnemyCharacter : BaseCharacter
{
	// Properties

	[SerializeField]
	float			m_lifeAdditionFactor	= 0.3f;
	[SerializeField]
	float			m_massAdditionFactor	= 0.2f;


	public override void OnInitialize()
	{
		base.OnInitialize();

		int clearCount		= CodexManager.clearCount;

		maxHP				= maxHP * (1f + m_lifeAdditionFactor * clearCount);
		curHP				= maxHP;
		rigidbody2D.mass	*= 1f + (m_massAdditionFactor * clearCount);
	}
}
